package io.renren.modules.avanotes.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 参考资料表
 *
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-02-21 12:46:54
 */
@Data
@TableName("reference_material")
public class ReferenceMaterialEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    public static String CN_ID = "id";
    public static String CN_BANK_ID = "bank_id";
    public static String CN_SPECIAL_ID = "special_id";
    public static String CN_TITLE = "title";
    public static String CN_RESOURCE_TYPE = "resource_type";
    public static String CN_FILE_TYPE = "file_type";
    public static String CN_PATH = "path";
    public static String CN_CREATE_TIME = "create_time";

    /**
     * 资料id
     */
    @TableId
    private Long id;
    /**
     * 库id
     */
    private Integer bankId;
    /**
     * 专题id
     */
    private Integer specialId;
    /**
     * 素材标题
     */
    private String title;
    /**
     * 资料类型（1-本地文件；2-互联网文件；3-实体书）
     */
    private Integer resourceType;
    /**
     * 文件类型（1-md；2-pdf；3-doc；4-视频；5-链接；6-实体书；7-未定义）
     */
    private Integer fileType;
    /**
     * 素材路径（本地绝对路径/URL/书名）
     */
    private String path;
    /**
     * 创建时间
     */
    private Date createTime;


    public ReferenceMaterialEntity() {
    }

    public ReferenceMaterialEntity(Integer bankId, String title, Integer resourceType, Integer fileType, String path) {
        this.bankId = bankId;
        this.title = title;
        this.resourceType = resourceType;
        this.fileType = fileType;
        this.path = path;
    }
}
